package com.ddf.jpa.boot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * @author DDf on 2018/9/24
 *
 */
@Entity
@Table(name = "USER")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User extends BaseDomain {
    @Column(name = "USER_NAME")
    private String username;
    @Column(name = "PASSWORD")
    private String password;
    @Column(name = "BIRTH_DAY")
    @Temporal(value = TemporalType.DATE)
    private Date birthDay;
    @Transient
    private String message;
}
